﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using sapphirelang.AST.Exprs;
using sapphirelang.AST.Patterns;

namespace sapphirelang.AST.Stmts
{
    // pat = value;
    // matches pat against the given value, and puts bound variables
    //   in the current scope
    class AssignStmt : Stmt
    {
        public Pattern pat;
        public Expr value;

        public AssignStmt(Pattern pat, Expr value)
        {
            this.pat = pat;
            this.value = value;
        }
    }
}
